<?php get_header();?>

<div id="items">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="item">
        <div class="background"></div> 
        <a href="<?php $key="videolink"; echo get_post_meta($post->ID, $key, true); ?>" rel="mediabox[<?php $key="videowidth"; echo get_post_meta($post->ID, $key, true); ?> <?php $key="videoheight"; echo get_post_meta($post->ID, $key, true); ?>]" Title="Click here to instantly play this video"><?php the_excerpt(); ?></a>     
        <div class="content">
        <h2><?php the_title() ?></h2>
		<p><?php the_time('F jS, Y') ?></p>
        </div>       
        <div class="comments-link">
        <p><a href="<?php the_permalink() ?>#comments" title="Comment on This Trailer"><?php comments_number('0', '1', '%'); ?></a></p>
        </div>        
        </div>
        <div id="content_text">
        <div id="article">
        	<h2><?php the_title() ?></h2>
    		<?php the_content(''); ?> 
        </div>
        <h2>Comments:</h2>
        <?php comments_template(); ?>   
        </div>
    <?php endwhile; else: ?>
    <?php endif; ?>
<div class="clear"></div>
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>